<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('支出列表')" />
</head>
<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="post-form">
					<div class="select-list">
						<ul>
							<li>
								所属店面：<select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
								<option value="">所有</option>
								<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
							</select>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							    <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>

				</form>
			</div>
			
			<div class="btn-group-sm" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.operate.addPerperty()" shiro:hasPermission="system:post:add">
	                <i class="fa fa-plus"></i> 录入物业信息
	            </a>
				<a class="btn btn-primary single disabled" onclick="$.operate.editPerperty()" shiro:hasPermission="system:kcgl:edit">
					<i class="fa fa-edit"></i> 修改物业信息
				</a>
				<a class="btn btn-danger single disabled" onclick="$.operate.removeProperty()" shiro:hasPermission="system:post:remove">
					<i class="fa fa-remove"></i> 废弃物业信息
				</a>
	        </div>

	        
	        <div class="col-sm-12 select-table table-striped">
			    <table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
	<th:block th:include="include :: footer" />
	<script th:inline="javascript">
		var editFlag = [[${@permission.hasPermi('system:post:edit')}]];
		var removeFlag = [[${@permission.hasPermi('system:post:remove')}]];
		var datas = [[${@dict.getType('sys_normal_disable')}]];
		var prefix = ctx + "hotel/property";

		$(function() {
		    var options = {
		        url: prefix + "/list",
		        createUrl: prefix + "/addProperty",
		        updateUrl: prefix + "/edit/{id}",
		        removeUrl: prefix + "/remove",
		        exportUrl: prefix + "/export",
		        sortName: "createTime",
		        modalName: "岗位",
		        columns: [{
		            checkbox: true
		        },
				{
					field: 'id',
					title: '编号'
				},
		        {
		            field: 'deptName',
		            title: '所属店面'
		        },
		        {
		            field: 'propertyInformation',
		            title: '物业信息',
		            sortable: true
		        },
		        {
		            field: 'propertyRent',
		            title: '年租金',
		            sortable: true
		        },
				{
					field: 'propertyFee',
					title: '年物业费',
					sortable: true
				},
		        {
		            field: 'propertyHeatingcost',
		            title: '年取暖费',
		            sortable: true
		        },
		        {
		            field: 'deliverTime',
		            title: '到期交房租时间',
		            sortable: true
		        },
				{
					field: 'rentTime',
					title: '房租到期时间',
					sortable: true
				},
				{
					field: 'contractTime',
					title: '合同到期时间',
					sortable: true
				},
				{
					field: 'remark',
					title: '备注',
					sortable: true
				},
				{
					field: 'updateBy',
					title: '操作人',
					sortable: true
				},
				{
					field: 'updateTime',
					title: '更新时间',
					sortable: true
				}]
		    };
		    $.table.init(options);
		});
	</script>
</body>
</html>